-- GENERATED SPELL FOR [Iron Rune Golem] --


function spell0_24271(pUnit, Event) --@Rune Punch,n/a--
pUnit:FullCastSpellOnTarget(49729,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24271', 10252, 1)
end

function Sorts_24271(pUnit, Event)
local choix_sorts_24271 = math.random(0, 0)
if choix_sorts_24271 == 0 then
pUnit:RegisterEvent('spell0_24271', 1, 1)
end
end

function mob24271_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24271', math.random(1500, 3000), 1)
end

function mob24271_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24271_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24271_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24271, 1, 'mob24271_Action')
RegisterUnitEvent(24271, 2, 'mob24271_Leave')
RegisterUnitEvent(24271, 3, 'mob24271_Kill')
RegisterUnitEvent(24271, 4, 'mob24271_Die')
